﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Microsoft.VisualStudio.TestTools.UnitTesting;
using Whatzup.Mobi.AppSvc;
using Whatzup.Mobi.Test.Moq;

namespace Whatzup.Mobi.Test
{
    [TestClass]
    public class MediaUrlVmTest
    {
        class Arrangement
        {
            public MoqServiceLocator moqServiceLocator;
            public Arrangement()
            {
                moqServiceLocator = new MoqServiceLocator();
            }

            public MediaUrlVm CreateTarget()
            {
                return new MediaUrlVm(moqServiceLocator.Object);
            }

        }
        [TestMethod]
        public void Get_MobileUrl()
        {
            Arrangement a = new Arrangement();
            a.moqServiceLocator.moqMediaRepo.mobileModel.Url = "Some value";

            MediaUrlVm target = a.CreateTarget();

            Assert.AreEqual("Some value", target.MobileUrl);
        }
        [TestMethod]
        public void Get_PcUrl()
        {
            Arrangement a = new Arrangement();
            a.moqServiceLocator.moqMediaRepo.pcModel.Url = "Some other value";

            MediaUrlVm target = a.CreateTarget();

            Assert.AreEqual("Some other value", target.PcUrl);
        }
    }
}
